#include<stdio.h>

int countBinary(int);

int main()
{
    int        n;

    scanf("%d",&n);
    printf("%d\n",countBinary(n));

    return 0 ;
}

int countBinary(int n)
{
    int rt;
    if(n==1) rt=1;
    if(n==0) rt=1;
    if(n!=0&&n!=1) rt=countBinary(n/2)+1 ;
    return rt;
}
    
